import { http } from '@/util'
// 百度商品管理—产品列表-产品信息
export const getListOnInfo = function(data) {
  return http.get('/anchor/platform/manager/baidu/product/list/on/info', {
    params: data
  })
}
// 百度商品管理—产品列表-产品信息-分区总
export const pointGetListOnInfo = function(data) {
  return http.get('/anchor/platform/manager/baidu/product/list/on/info/self', {
    params: data
  })
}
// 百度商品管理-产品列表-产品信息-套餐-列表详情
export const getListOnInfoItem = function(data) {
  return http.get('/anchor/platform/manager/baidu/product/list/on/info/item', {
    params: data
  })
}

// 百度商品管理-产品上下架
export const setBdOnLineStatus = (data) => {
  return http.post('/anchor/platform/manager/baidu/product/modify/baiDuProductStatus', data)
}
// 百度数据统计
export const statistData = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/query', data)
}

// 数据实时监控-商品维度
export const statisticsGoodsBd = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/order/statistics/location/query', data)
}

// 数据实时监控-商品维度-套餐
export const statisticsGoodsItemsBd = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/order/statistics/location/items/query', data)
}

// 数据实时监控-商品维度-查询(区总、分总)
export const statisticsGoodsPointAndAreaBd = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/order/statistics/location/query/self', data)
}

// 数据实时监控-站点维度-站点列表详情数据查询百度
export const siteStatisticsDetail = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/anchor/site/statistics/detail/page', data)
}

// 数据实时监控-站点维度-站点列表详情数据查询（区总，分总权限） 百度
export const siteStatisticsDetailSelf = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/anchor/site/statistics/detail/page/self', data)
}

// 数据实时监控-站点维度-站点总体图形数据查询 百度
export const siteStatisticsTotal = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/anchor/site/statistics/total/query', data)
}

// 数据实时监控-站点维度-站点总体图形数据查询（区总，分总权限） 百度
export const siteStatisticsTotalSelf = function(data) {
  return http.post('/anchor/platform/manager/baidu/statistics/anchor/site/statistics/total/query/self', data)
}
